export const RegNumber15 = {
  pattern: /^[A-Za-z0-9]{1,15}$/,
  message: "请输入数字或字母，限制长度为15个字符"
};

export const RegString50 = {
  pattern: /(^[\s\S]{1,50}$)/,
  message: "请输入中文字符，限制长度50个字符"
};

export const RegChinese100 = {
  pattern: /^[\u4E00-\u9FA5]{1,100}$/,
  message: "请输入中文字符，限制长度100个字符"
};

export const RegChineseEnglish10 = {
  pattern: /^[\u4E00-\u9FA5A-Za-z]{1,10}$/,
  message: "请输入中文或英文，限制长度10个字符"
}

export const RegPhone11 = {
  pattern: /^1[0-9]{10}$/,
  message: "请输入手机号，限制长度11个数字"
}

export const RegPersonNo = {
  pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
  message: "请输入身份证号。限制长度为16位数字"
}

export const RegString20 = {
  pattern: /(^[\s\S]{1,20}$)/,
  message: "请输入20个字符"
}
